const CryptoJS = require("crypto-js");
export let password=(data) =>{
      let key = "53af4e0914f92ac0";
      key = CryptoJS.enc.Utf8.parse(key);
      var srcs = CryptoJS.enc.Utf8.parse(data);
      var encrypted = CryptoJS.AES.encrypt(srcs, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });
//    return encrypted.toString();
   let arr=encrypted.toString()
   arr=arr.split("")
   let param = ""
   arr.forEach(x => {
     if (x == "/") {
       x = "$"
     }
     if (x == "+") {
       x = "*"
     }
     param += x
   })
     return param;
    }